package com.csun.cmny.provider.service;

import com.csun.cmny.provider.service.hystrix.OmcActivitiFeignHystrix;
import com.csun.cmny.security.feign.OAuth2FeignAutoConfiguration;
import com.csun.cmny.util.wrapper.Wrapper;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-12-12 19:42
 * @Description:
 */
@FeignClient(value = "cmny-provider-omc", configuration = OAuth2FeignAutoConfiguration.class, fallback = OmcActivitiFeignHystrix.class)
public interface OmcActivitiFeignApi {

    @PostMapping(value = "/api/activiti/revise")
    Wrapper<Integer> reviseProcessDeploymentCreate(@RequestParam("groupId") Long groupId);
}
